$OpenBSD: patch-src_libknot_util_endian_h,v 1.1.1.1 2015/04/12 16:07:13 jca Exp $
--- src/libknot/util/endian.h.orig	Thu Feb 19 09:43:56 2015
+++ src/libknot/util/endian.h	Fri Apr  3 02:42:16 2015
@@ -32,10 +32,7 @@
 #elif defined(__FreeBSD__) || defined(__NetBSD__)
 #	include <sys/endian.h>
 #elif defined(__OpenBSD__)
-#	include <sys/types.h>
-#	define be16toh(x) betoh16(x)
-#	define be32toh(x) betoh32(x)
-#	define be64toh(x) betoh64(x)
+#	include <endian.h>
 #elif defined(__APPLE__)
 #       include <libkern/OSByteOrder.h>
 #       define be16toh(x) OSSwapBigToHostInt16(x)
